import { post, put } from '@/common/js/httpHelper'
import {EMAILTEMPLATE_URL} from '@/common/js/interfaces'

const getEmailTemplatesWithQuery = async(query) => {
  const result = await post(EMAILTEMPLATE_URL + '/list', query)
  return result
}

const updateEmailTemplate = async(params) => {
  return await put(EMAILTEMPLATE_URL + '/update', params)
}

export default {
  getEmailTemplatesWithQuery: getEmailTemplatesWithQuery,
  updateEmailTemplate: updateEmailTemplate
}
